package com.example.computer_exam_training_sys.service;

import com.example.computer_exam_training_sys.entity.Question;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionService {
    int insert(Question question);
    Question selectById(Integer questionId);
    List<Question> selectAll();
    int update(Question question);
    int delete(Integer questionId);
    List<Question> selectBypointId(@Param("pointId") Integer pointId);
    Integer getFirstQuestionIdByPointId(Integer pointId);
    //pageno:是第多少页，pagesize：每页多少条
    public PageInfo<Question> findAllpage(int pageNo, int pageSize);

}
